package http;

import java.nio.channels.SocketChannel;
import java.util.Arrays;

/**
 * Created by zzf on 2017/4/26.
 */
public class Response {
    private SocketChannel channel;

    private byte[] outputData;

    public Response(SocketChannel channel, byte[] outputData) {
        this.channel = channel;
        this.outputData = outputData;
    }

    public byte[] getOutputData() {
        return Arrays.copyOf(outputData,outputData.length);
    }

    public void setOutputData(byte[] outputData) {
        this.outputData = outputData;
    }

    public SocketChannel getChannel() {
        return channel;
    }

    public void setChannel(SocketChannel channel) {
        this.channel = channel;
    }

    public void send(byte[] bytes) {

    }
}
